<?php
/**
 * Created by PhpStorm.
 * User: l
 * Date: 2016/7/18
 * Time: 15:18
 */
use app\assets\AppAsset;
use yii\widgets\ActiveForm;
use yii\helpers\Html;
AppAsset::register($this);

$base = Yii::$app->request->baseUrl;
AppAsset::addCss($this, $base . "/css/login.css");
$this->title = '申请代理';
?>
<div class="login">
    <?php $form = ActiveForm::begin([
        'id' => 'apply-form',
        'options' => ['class' => 'form-horizontal'],
        'fieldConfig' => [
            'template' => "{label}\n<div class=\"col-lg-3\">{input}</div>\n<div class=\"col-lg-8\">{error}</div>",
            'labelOptions' => ['class' => 'col-lg-1 control-label'],
        ],
    ]); ?>
    <?= $form->field($model, 'mobile')->textInput(['autofocus' => true, 'placeholder' => "请输入手机号码"]) ?>
    <?= $form->field($model, 'username')->textInput(['placeholder' => "请输入用户名"]) ?>
    <?= $form->field($model, 'password')->passwordInput(['placeholder' => "请输入密码"]) ?>
    <?= $form->field($model, 'content')->textArea(['rows' => 6]) ?>
    <div class="form-group">
        <div class="col-lg-offset-1 col-lg-11">
            <?= Html::submitButton('申请成为代理', ['class' => 'btn btn-primary', 'name' => 'login-button']) ?>
        </div>
    </div>
    <?php ActiveForm::end(); ?>

</div>

